package com.hqyj.javaSpringCloudAccount.service;

import com.hqyj.entity.test.City;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @Description TestFeignClient
 * @Author HymanHu
 * @Date 2021/9/3 10:27
 */
@Component
@FeignClient(name = "client-test")
public interface TestFeignClient {

    @GetMapping("/api/test/city/{cityId}")
    public City getCityByCityId(@PathVariable int cityId);
}
